package com.zhangkunhao.notes.entity.Do;

import com.zhangkunhao.notes.annotation.TableField;
import com.zhangkunhao.notes.annotation.TableId;
import com.zhangkunhao.notes.annotation.TableName;


/**
 * 私信
 *
 * @author 20642
 */
@TableName(name = "tb_private_message")
public class PrivateMessage {
    @TableId(value = "id")
    private Integer id;

    private String content;

    @TableField(value = "from_user_id")
    private Integer fromUserId;

    @TableField(value = "to_user_id")
    private Integer toUserId;

    @TableField(value = "from_user_name")
    private String fromUserName;


    public PrivateMessage() {
    }

    public PrivateMessage(Integer id, String content, Integer fromUserId, Integer toUserId, String fromUserName) {
        this.id = id;
        this.content = content;
        this.fromUserId = fromUserId;
        this.toUserId = toUserId;
        this.fromUserName = fromUserName;
    }

    /**
     * 获取
     *
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     *
     * @param id：
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     *
     * @return content
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置
     *
     * @param content：
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 获取
     *
     * @return fromUserId
     */
    public Integer getFromUserId() {
        return fromUserId;
    }

    /**
     * 设置
     *
     * @param fromUserId：
     */
    public void setFromUserId(Integer fromUserId) {
        this.fromUserId = fromUserId;
    }

    /**
     * 获取
     *
     * @return toUserId
     */
    public Integer getToUserId() {
        return toUserId;
    }

    /**
     * 设置
     *
     * @param toUserId：
     */
    public void setToUserId(Integer toUserId) {
        this.toUserId = toUserId;
    }

    /**
     * 获取
     *
     * @return fromUserName
     */
    public String getFromUserName() {
        return fromUserName;
    }

    /**
     * 设置
     *
     * @param fromUserName：
     */
    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName;
    }

    @Override
    public String toString() {
        return "PrivateMessage{id = " + id + ", content = " + content + ", fromUserId = " + fromUserId + ", toUserId = " + toUserId + ", fromUserName = " + fromUserName + "}";
    }
}
